﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WeightSelect.aspx.cs" Inherits="WebApplication2.WeightSelect" EnableEventValidation="false" %>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>

<body >
    
   <form runat="server">
       <script type="text/javascript">
           function submitData(value) {
               window.opener.setTextBox(value);
               window.close();
           }
         
    </script>
       <fieldset runat="server">
           <legend>Please Select Weight </legend>
  

 
            
  <div>
      <asp:Label ID="lblPatientID" runat="server" Text="PatientID" Width="100px"></asp:Label>
      <asp:TextBox ID="tbxPatientID" runat="server" Width="100px"></asp:TextBox>
  </div>
    <div>
        <asp:Label ID="lblStarttime" runat="server" Text="Start Time" Width="100px"></asp:Label>
        <input type ="date"  style= "width : 100px" id ="Sdate" runat="server"/>
         <input type ="time"  style= "width : 100px" id="Sime1" runat="server"/>
        
    </div>
     <div>
        <asp:Label ID="lblEndTime" runat="server" Text="End Time" Width="100px"></asp:Label>
       <input type ="date"  style= "width : 100px" id ="SDate2" runat="server"/>
          <input type ="time"  style= "width : 100px" id="Etime" runat="server"/>
    </div>


  <br>
           <asp:Button ID="lblSearch" runat="server" Text="Search" style="margin-left:250px" OnClick="lblSearch_Click" />

    <asp:GridView AutoGenerateColumns="False"  runat="server" ID="GridView2"   BorderColor="#999999" BorderWidth="1px" CellPadding="3"  onrowdatabound="GridView2_RowDataBound" ForeColor="Black"  OnSelectedIndexChanged="GridView2_SelectedIndexChanged" visible="true" BorderStyle="None" Font-Bold="False" Font-Names="Calibri" Font-Size="Small" GridLines="Vertical" ToolTip="Click to Select" Height="72px" Width="347px" style="margin-right: 65px" >
             <AlternatingRowStyle BackColor="#DCDCDC" />
             <Columns>
                <asp:BoundField DataField="Date_Created" HeaderText="Date_Created"/>
                <asp:BoundField DataField="MachineID" HeaderText="MachineID" />
                <asp:BoundField DataField="Weight" HeaderText="Weight" />
                <asp:BoundField DataField="isDesiredWeight" HeaderText="isDesiredWeight" />
             </Columns>
             <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
             <HeaderStyle BackColor="#000084" Font-Bold="False"  BorderColor="#C0C0C0" ForeColor="White"  />
             <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
             <RowStyle BackColor="#EEEEEE" ForeColor="Black" HorizontalAlign="left" />
             <SelectedRowStyle BackColor="#008A8C" ForeColor="White" Font-Bold="True" />
             <SortedAscendingCellStyle BackColor="#F1F1F1" />
             <SortedAscendingHeaderStyle BackColor="#0000A9" />
             <SortedDescendingCellStyle BackColor="#CAC9C9" />
             <SortedDescendingHeaderStyle BackColor="#000065" />

   </asp:GridView>
   
         
  </fieldset>

     
  </form>
      
    
  

</body>
</html>